var Entity_Relationships = [];

function Relationship_EvalOnChange(id, value)
{
    var childId = Entity_Relationships[id];
	    
	if (childId != null)
	{
    	// El objeto dependiente es un combo
    	if( !(typeof(ComboList_Instances)==="undefined") && (ComboList_Instances[childId]) ) {
    	    var childCombo = ComboList_Instances[childId];
	        childCombo.RefreshDataSinc(value);
	    }
	    
	    // El objeto dependiente es un selector
	    else if( !(typeof(Selector_Instances)==="undefined") && (Selector_Instances[childId]) ) {
      	    var childSelector = Selector_Instances[childId];
      	    childSelector.parentValue = value;
      	    childSelector.clear();
        }
        
	    // El objeto dependiente es un checklist
	    else if( !(typeof(CheckList_Instances)==="undefined") && (CheckList_Instances[childId]) ) {
      	    var childCheckList = CheckList_Instances[childId];
	        childCheckList.RefreshData(value);
        }        
	}
}
